package com.example.document

import com.example.document.entity.Data
import com.example.document.entity.DocEntity
import com.example.lib_base.BaseEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface ApiService {

    @POST("/document/seldocuments")
    fun selDocuments(@Body body: RequestBody):Flow<DocEntity>

    @POST("/document/deldocuments")
    fun delDocuments(@Body body: RequestBody):Flow<DocEntity>

    @Multipart
    @POST("/document/uploaddocuments")
    fun uploadDoc(@Part data: List<MultipartBody.Part>):Flow<BaseEntity>
}